﻿<Window x:Class="SsTool.Common.SelectEntityMetadataWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SelectEntityMetadataWindow" Height="300" Width="500" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <DataGrid Grid.Row="0" Name="_ctlGrid" IsReadOnly="True" AutoGenerateColumns="False">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Caption}" Header="Caption"  Width="*"/>
                <DataGridTextColumn Binding="{Binding Name}" Header="Name" Width="*"/>
            </DataGrid.Columns>
        </DataGrid>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Name="_ctlBtnSelect" Click="_ctlBtnSelect_Click" Margin="5,5,0,5">
                <StackPanel Orientation="Horizontal">
                    <Image Source="../Resources/accept.png" Margin="0,0,5,0"/>
                    <TextBlock Text="选择"/>
                </StackPanel>
            </Button>
            <Button Name="_ctlBtnCancel" IsCancel="True" Margin="5,5,5,5">
                <StackPanel Orientation="Horizontal">
                    <Image Source="../Resources/cancel.png" Margin="0,0,5,0"/>
                    <TextBlock Text="关闭"/>
                </StackPanel>
            </Button>
        </StackPanel>
    </Grid>
</Window>
